package demoMod.nanaki.relics;

import basemod.abstracts.CustomRelic;
import com.badlogic.gdx.graphics.Texture;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.AbstractCreature;
import demoMod.nanaki.NanakiMod;
import demoMod.nanaki.interfaces.NoteApplyHook;

public class Vine extends CustomRelic implements NoteApplyHook {
    public static final String ID = NanakiMod.makeID("Vine");
    public static final Texture IMG = new Texture(NanakiMod.getResourcePath("relics/Vine.png"));
    public static final Texture IMG_OUTLINE = new Texture(NanakiMod.getResourcePath("relics/Vine_outLine.png"));

    public Vine() {
        super(ID, IMG, IMG_OUTLINE, RelicTier.RARE, LandingSound.MAGICAL);
    }

    @Override
    public String getUpdatedDescription() {
        return DESCRIPTIONS[0];
    }

    @Override
    public int onApplyNote(AbstractCreature target, int amount) {
        if (target instanceof AbstractPlayer) {
            return amount;
        }
        this.flash();
        return amount + 1;
    }
}
